package com.liuyuan.mapper;

import com.liuyuan.pojo.News;
import com.liuyuan.pojo.User;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

@Mapper
public interface NewsDao {

    News getNewsById(int id);
    List <News> getAllNews();
    int insertNews(News news);
    int addNews(News news);
    int updateNews(News news);
    int deleteNews(int id);

}
